﻿// <copyright file="GeographicalData.cs" company="QUT">
//     Copyright (c) Ninety Nine Percent. All rights reserved.
// </copyright>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Qut.GenerateKml.Data
{
    /// <summary>
    /// Component to manage geographical data.
    /// </summary>
    public class GeographicalData : IGeographicalData
    {
        /// <summary>
        /// The MapInfo file.
        /// </summary>
        private MapInfoFile mapInfoFile;

        /// <summary>
        /// Loads the specified MapInfo MIF and MID files.
        /// </summary>
        /// <param name="mifFilePath">The file path for the MapInfo MIF file.</param>
        /// <param name="midFilePath">The file path for the MapInfo MID file.</param>
        /// <returns>A MapInfoData object representing the MapInfo MID / MIF files.</returns>
        public MapInfoFile Load(string mifFilePath, string midFilePath)
        {
            this.mapInfoFile = new MapInfoFile(mifFilePath, midFilePath);
            return this.mapInfoFile;
        }

        /// <summary>
        /// Determines whether this instance is valid.
        /// </summary>
        /// <returns>
        /// Returns <c>true</c> if this instance is valid; otherwise, <c>false</c>.
        /// </returns>
        public bool IsValid()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// Gets any errors that were generated loading the geographical data.
        /// </summary>
        /// <returns>Returns a list of errors.</returns>
        public List<string> GetErrors()
        {
            throw new NotImplementedException();
        }
    }
}
